<?php
	if(!empty($uri_var[2])){$filetype = $uri_var[2];}else{$filetype = "";}
	if(!empty($uri_var[3])){$filename = $uri_var[3];}else{$filename = "";}
	$filename_arr = explode(".",$filename);
	$filename = $filename_arr[0].".php";
	
	// Check Modules Label
	if($filetype == "management")
	{
		$sql = "select moduleadminlabel from ms_module_admin where stsrc = 'A' and moduleadminurlback = '".$filename."' ";
		$exe = mysql_query($sql) or die(mysql_error());
		$row = mysql_fetch_array($exe);
		$modulelabel = $row['moduleadminlabel'];
	}
	else if($filetype == "module")
	{
		$sql = "select modulelabel from ms_module where stsrc = 'A' and moduleurlback = '".$filename."' ";
		$exe = mysql_query($sql) or die(mysql_error());
		$row = mysql_fetch_array($exe);
		$modulelabel = $row['modulelabel'];
	}
	
	// Check Sub Modules 2 Label
	if(1==0)	// turn on / off modulesub2
	{
		if($modulelabel == "" || empty($modulelabel))
		{
			$sql = "select modulesub2label from ms_module_sub_2 where stsrc = 'A' and modulesub2urltype = '".$filetype."' and modulesub2urlback = '".$filename."' ";
			$exe = mysql_query($sql) or die(mysql_error());
			$row = mysql_fetch_array($exe);
			$modulelabel = $row['modulesub2label'];
		}
	}
	
	// Check Sub Modules Label
	if($modulelabel == "" || empty($modulelabel))
	{
		$sql = "select modulesublabel from ms_module_sub where stsrc = 'A' and modulesuburltype = '".$filetype."' and modulesuburlback = '".$filename."' ";
		$exe = mysql_query($sql) or die(mysql_error());
		$row = mysql_fetch_array($exe);
		$modulelabel = $row['modulesublabel'];
	}
?>
<span class="header_label_string"><?php echo strtoupper($modulelabel)." ".strtoupper($filetype); ?></span>